package com.personal.common.util;

public class DataTable {
	private int sEcho = 1;
	private int iTotalRecords = 0;
	private int iTotalDisplayRecords = 0;

	private String data = "";

	public int getsEcho() {
		return sEcho;
	}

	public void setsEcho(int sEcho) {
		this.sEcho = sEcho;
	}

	public int getiTotalRecords() {
		return iTotalRecords;
	}

	public void setiTotalRecords(int iTotalRecords) {
		this.iTotalRecords = iTotalRecords;
	}

	public int getiTotalDisplayRecords() {
		return iTotalDisplayRecords;
	}

	public void setiTotalDisplayRecords(int iTotalDisplayRecords) {
		this.iTotalDisplayRecords = iTotalDisplayRecords;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public String toJson() {
		StringBuffer json = new StringBuffer();
		json.append("{\"sEcho\":");
		json.append(this.sEcho);
		json.append(",\"iTotalRecords\":");
		json.append(this.iTotalRecords);
		json.append(",\"iTotalDisplayRecords\":");
		json.append(this.iTotalDisplayRecords);
		json.append(",\"data\":");
		json.append(this.data);
		json.append("}");
		return json.toString();
	}
}
